package com.magicode.cms.dao.impl;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.magicode.cms.dao.INewsBroadPlatformRelaDao;
import com.magicode.cms.entiy.base.NewsBroadPlatformRela;


@Repository("newsBroadPlatformRelaDao")
public class NewsBroadPlatformRelaDaoImpl extends BaseDaoImpl<NewsBroadPlatformRela>implements INewsBroadPlatformRelaDao {

	@Override
	public List<NewsBroadPlatformRela> queryDataList(String hql, int i, int j) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void deleteNewsProgramRelalist(String userid) {
		// TODO Auto-generated method stub
		String hql = " from "+NewsBroadPlatformRela.class.getName()+" t " +
				"  where  t.news.id = '"+userid+"'" ;
		List<NewsBroadPlatformRela> vphs = commonDaoService.getListByHQL(hql);
		commonDaoService.deleteAll(vphs);
	}
}
